<?php
if (empty ($data_pdf)) {
    echo "Tidak ada data";
}
else {
?>
<style>
	h4 {
		font-size:20px;
		font-weight:bold;
		margin:0px;
		margin-bottom:5px;
	}
	page{
		border:1px solid black;
	}
	p{
		margin:5px;
		font-size: 12px;
	}
	.header{
		width:95%;
		border-bottom:2px double black;
		padding:10px 0;
	}
	.header img{
		width:100px;
		height:auto;
	}
	.tblbtl {
		border: 1px solid black;
		width: 100%;
	}
	.tblbtl td, 
	.tblbtl th {
		border-bottom: 1px solid black;
		padding: 6px 6px;
		font-size: 12px;
	}
</style>
<page backtop="30mm" backbottom="10mm" backleft="1mm" backright="3mm">
    <page_header>
        <table style="width: 95%;" class="header" cellspacing=0 cellpadding=0 >
            <tr>
                <td style="text-align: left;   width: 10%"><img src='<?php base_url()?>asset/images/logo.jpg' /></td>
				<td style="text-align: center; width: 80%">
					<h4><?php echo $namaUniv;?></h4>
					<p><?php echo $alamatUniv;?></p>
					<p><?php echo $kotaUniv;?></p>
				</td>
                <td style="text-align: right;   width: 10%"><?php //echo date('d/m/Y'); ?></td>
            </tr>
        </table>
    </page_header>
   
	<!--<table style="width:100%;">-->
	<p align="center"><b>DAFTAR HADIR PESERTA UAS</b></p>
	<p align="center"></p>
	<p align="center"></p>
	<table style="width: 100% !important;">
<?php $jumlahspasi = 26; ?>
		<tr> 
			<td align="left">Program Studi</td>
			<td align="left"> : <?php echo $data_pdf[0]->nama_prodi;?></td>
			<?php for($i = 0; $i < $jumlahspasi; $i++): ?><td>&nbsp;</td><?php endfor; ?>
			<td align="left">Semester</td>
			<td align="left"> : <?php echo $data_pdf[0]->smstr;?></td>
		</tr>
		<tr>
			<td align="left">Kode MK</td>
			<td align="left"> : <?php echo $data_pdf[0]->kd_matakuliah;?></td>
			<?php for($i = 0; $i < $jumlahspasi; $i++): ?><td>&nbsp;</td><?php endfor; ?>
			<td align="left">Tanggal</td>
			<td align="left"> : </td>
		</tr>
		<tr>
			<td align="left">Nama MK</td>
			<td align="left"> : <?php echo $data_pdf[0]->nama_matakuliah;?></td>
			<?php for($i = 0; $i < $jumlahspasi; $i++): ?><td>&nbsp;</td><?php endfor; ?>
			<td align="left">Jam</td>
			<td align="left"> : </td>
		</tr>
		<tr>
			<td align="left">Kelas UTS</td>
			<td align="left"> : </td>
			<?php for($i = 0; $i < $jumlahspasi; $i++): ?><td>&nbsp;</td><?php endfor; ?>
			<td align="left">Ruang</td>
			<td align="left"> : </td>
		</tr>
		<tr>
			<td align="left">Dosen</td>
			<td align="left"> : <?php echo $data_pdf[0]->nama_dosen;?></td>
			<?php for($i = 0; $i < $jumlahspasi; $i++): ?><td>&nbsp;</td><?php endfor; ?>
			<td align="left">Jumlah Peserta</td>
			<td align="left"> : </td>
		</tr>
		
	</table> 
	<br/>
	<div>
	<table width= "100%" border="0.5" bordercolor="#000000" class='tblbtl' cellspacing=0 cellpadding=0>
	  <tr>
		<th width="15" align="center">No</th>
		<th width="40" align="center">NIM</th>
		<th width="150" align="center">Nama</th>
		<th width="50" align="center">Tanda Tangan</th>
		<th width="25" align="center">Nilai UTS</th>
		<th width="25" align="center">Nilai UAS</th>
		<th width="25" align="center">Nilai Tugas</th>
		<th width="25" align="center">Nilai Quis</th>
		<th width="25" align="center">Keha- Diran</th>
		<th width="35" align="center">Nilai Angka Mutu</th>
		<th width="35" align="center">Nilai Huruf Mutu</th>
	  </tr>
	  <?php 
		$no = 1;
		$sks=0;
		foreach ($data_pdf as $data):
		$sks += $data->sks;
	  ?>
	  <tr>
		<td><?php echo $no; ?></td>
		<td><?php echo $data->nim;?></td>
		<td><?php echo $data->nama;?></td>
		<td>	</td>
		<td>	</td>
		<td>	</td>
		<td>	</td>
		<td>	</td>
		<td>	</td>
		<td>	</td>
		<td>	</td>
	  </tr>
	  <?php 
		$no++;
		//foreach
	  endforeach; ?>
	</table>
<br/>
	<table width="100%">
		<tr>
			<td width="500">&nbsp;</td>
			<td align="center"><?php echo $kotaUniv;?>, <?php echo date('d-m-Y')?></td>
		</tr>
		<tr>
			<td width="51%"></td>
			<td align="center">Pengawas</td>
		</tr>
		<tr>
		<td width="51%">&nbsp;</td>
		</tr>
		<tr>
		<td align="center">&nbsp;</td>
		</tr>
		<tr>
		<td width="51%"></td>
		<td align="center">___________________</td>
		</tr>
	</table>
	</div>
<br/>
<page_footer>
	<table style="width: 100%; border-top: solid 1px black;">
		<tr>
			<td style="text-align: left;    width: 50%">STMIK BANDUNG </td>
			<td style="text-align: right;    width: 50%">page [[page_cu]]/[[page_nb]]</td>
		</tr>
	</table>
</page_footer>
</page>

<?php } ?>